import { TimeStamp } from ".";
export interface Role extends TimeStamp {
    _id: string;
    name: string;
	status?: boolean;
	permissions?: string[];
	desc?: string;
	key: string;
}

export type CreateRoleReq = Omit<Role,"permissions" | "_id" | keyof TimeStamp> & {
    permissions?: any;
};

export interface UpdateRoleReq extends Omit<Partial<Role>,"permissions" | keyof TimeStamp> {
    _id: string,
    permissions?: any;
}